<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // fetch('http://192.168.22.24:4000/ping')
        //     .then(res => res.json())
        //     .then(res => {
        //         console.log(123)
        //     })
        //     .catch(err=>{
        //         console.log(err)
        //     })
        fetch('http://192.168.22.24:4000/ping', {
            method: 'POST',
            headers: {
                'content-type': 'application/json'
            },
            body: JSON.stringify({

            })
        })
            .then(res => res.json())
            .then(res => {
                console.log(123)
            })
            .catch(err=>{
                console.log(456)
            })
    </script>
</body>

</html>